gate c programming questions